<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title></title>
</head>
<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap-table.min.css"/>
<link rel="stylesheet" type="text/css" href="/admin/css/style.min.css"/>
<link rel="stylesheet" type="text/css" href="/admin/css/font-awesome.css"/>
<link rel="stylesheet" href="/admin/layui/css/layui.css">

<script src="/admin/js/jquery-3.3.1.min.js"></script>
<script src="/admin/js/bootstrap.js"></script>
<script src="/admin/js/bootstrap-table.js" type="text/javascript" charset="utf-8"></script>
<script src="/admin/js/bootstrap-table-zh-CN.js"></script>
<script src="/admin/layui/layui.js" charset="utf-8"></script>
<script src="/admin/js/base.js" charset="utf-8"></script>
<script src="/admin/js/api.js" charset="utf-8"></script>
<script src="/admin/js/common.js" charset="utf-8"></script>

<body>
	<div class="rigthContent">
		<div class="col-sm-12">
			<div class="ibox float-e-margins">
				<div class="search-top" >
					<div class="layui-form-item">
						<form class="layui-form searchList" action="" id="searchForm" style="margin-bottom: 0;">
							<div class="layui-inline ">
								<label class="layui-form-label">企业名称：</label>
								<div class="layui-input-block">
									<input name="entName" id="entName" value="" class="form-control input-sm" aria-controls="editable" type="search">
								</div>
							</div>
							<div class="layui-inline ">
								<a href="javascript:;" class="btn btn-info btn-sm searchListener"><span class="icon icon-search handle_ioc"></span>搜索</a>
							</div>
						</form>

						<div class="layui-inline tool_bar " style="float: right;">
							<a href="javascript:void(0);" class="btn btn-default btn-sm" onclick="windowloadList()">
								<span class="icon icon-refresh handle_ioc"></span>刷新
							</a>
							<a href="javascript:void(0);" class="btn btn-default btn-sm common-add" onclick="commonAdd(Api.admin.enterprise.addHtml)">
								<span class="icon  icon-plus-sign handle_ioc "></span>新增
							</a>
							<a href="javascript:void(0);" class="btn btn-default btn-sm common-update" onclick="commonUpdate(Api.admin.enterprise.addHtml, 'id')">
								<span class="icon icon-edit handle_ioc  "></span>编辑
							</a>
							<a href="javascript:void(0);" class="btn btn-default btn-sm common-delete" onclick="commonDelete(Api.admin.enterprise.deleteById, 'id')">
								<span class="icon icon-remove-sign handle_ioc  "></span>删除
							</a>

						</div>
					</div>
				</div>
				<div class="content">
					<div>
						<table class="table" id="table_list" aria-describedby="editable_info" style="table-layout:fixed"></table>
					</div>
				</div>
			</div>
		</div>
	</div>

<script>
    // 双击效果
    dblclickListApi = {
        URL: Api.admin.enterprise.viewHtml,
        ID: 'id',
        TITLE: '企业详情信息'
    };

	conlums = [{
		field: 'check',
		checkbox: true,
		width: '0',
		class: 'tableCheckStatus',
	},{
		field: 'Number',class: 'tableNumber',//可不加
		title: '序号',
		align: 'center',
		valign: 'top',
		width: '30px',
		formatter: function (value, row, index) {
			return tableNumber(index);
		}
	}, {
		field: 'entName',
		title: '企业名称',
		align: 'center',
		width: '200'
	},{
		field: 'entCode',
		title: '统一社会信用代码',
		width: '200',
		align: 'center'
	},{
		field: 'contactPerson',
		title: '联系人',
		width: '100',
		align: 'center'
	}, {
		field: 'contactPhone',
		title: '联系电话',
		width: '100',
		align: 'center'
	},{
		field: 'legalPerson',
		title: '法定代表人',
		width: '120',
		align: 'center'
	}];

	layuiReady(function () {
	    _loadingClose();
		// 初始化数据
		init_table(Url.creatUrl(Api.admin.enterprise.findList, {}), conlums);
	});

</script>
</body>

</html>